// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   IDUtils.java

package com.ronglian.register_mini_program.util;

import java.io.PrintStream;
import java.util.Random;

public class IDUtils {

    public IDUtils() {
    }

    public static String genImageName() {
        long millis = System.currentTimeMillis();
        Random random = new Random();
        int end3 = random.nextInt(999);
        String str = (new StringBuilder()).append(millis).append(String.format("%03d", new Object[]{
                Integer.valueOf(end3)
        })).toString();
        return str;
    }

    public static long genItemId() {
        long millis = System.currentTimeMillis();
        Random random = new Random();
        int end2 = random.nextInt(99);
        String str = (new StringBuilder()).append(millis).append(String.format("%02d", new Object[]{
                Integer.valueOf(end2)
        })).toString();
        long id = (new Long(str)).longValue();
        return id;
    }

    public static void main(String args[]) {
        for (int i = 0; i < 100; i++)
            System.out.println(genItemId());

    }
}
